import type { ProxyProvider } from '../../shared/types/config'

// WebShare 免费池公共列表（各免费帐号共享同一批 IP:Port）
const WEB_SHARE_FREE_POOL_COMMON: string[] = [
  '142.111.48.253:7030',
  '31.59.20.176:6754',
  '198.23.239.134:6540',
  '45.38.107.97:6014',
  '107.172.163.27:6543',
  '64.137.96.74:6641',
  '84.247.60.125:6095',
  '216.10.27.159:6837',
  '142.111.67.146:5611',
  '142.147.128.93:6593',
]

export const providers: ProxyProvider[] = [
  {
    id: 'free_pool_0',
    label: 'WebShare-免费代理',
    type: 'residential',
    protocol: 'http',
    vendor: 'webshare',
    is_free: true,
    account: '',
    api_key: '',
    auth: { username: 'umdtxjiu', password: 'zxdav7cpcgbn' },
    pool: WEB_SHARE_FREE_POOL_COMMON,
    enabled: false,
  },
  {
    id: 'free_pool_1',
    label: 'WebShare-免费代理',
    type: 'residential',
    protocol: 'http',
    vendor: 'webshare',
    is_free: true,
    account: 'zhan20250524@163.com',
    api_key: '',
    auth: { username: 'nocomdbd', password: 'q9jm5p30e5ju' },
    pool: WEB_SHARE_FREE_POOL_COMMON,
    enabled: false, // 默认禁用示例免费池
  },
  {
    id: 'free_pool_3',
    label: 'WebShare-免费代理',
    type: 'residential',
    protocol: 'http',
    vendor: 'webshare',
    is_free: true,
    account: 'yxqth159001@163.com',
    api_key: 'koh3sxh0kyktbm3gx6h65ix27vauu286c9a2249d',
    auth: { username: 'egcnqdyx', password: 'uk1eua4aed3z' },
    pool: WEB_SHARE_FREE_POOL_COMMON,
    enabled: false,
  },
  // {
  //   id: 'free_pool_4',
  //   label: 'WebShare免费池(流量已用尽)',
  //   type: 'residential',
  //   protocol: 'http',
  //   account: 'qijianshi2a@163.com',
  //   api_key: 'ge2r3mv3rpkmr5gikxl3lrnozdli329fvtop0vdm',
  //   auth: { username: 'hrnuhwbd', password: 'f52svbmnl118' },
  //   pool: WEB_SHARE_FREE_POOL_COMMON,
  //   enabled: false,
  // },
  {
    id: 'free_pool_5',
    label: 'WebShare-免费代理',
    type: 'residential',
    protocol: 'http',
    vendor: 'webshare',
    is_free: true,
    account: 'zhzr516688001@2925.com',
    api_key: '2u93ziim6yaarqop55i8io1p5v3yicx2w71txxss',
    auth: { username: 'xcoiwkel', password: '6ywcsi12iqdb' },
    pool: WEB_SHARE_FREE_POOL_COMMON,
    enabled: false,
  },
  {
    id: 'free_pool_6',
    label: 'WebShare-免费代理',
    type: 'residential',
    protocol: 'http',
    vendor: 'webshare',
    is_free: true,
    account: 'zhzr516688002@2925.com',
    api_key: '4q3rbnexe3cdov0yfigf8i812a8romto5jhlrqlj',
    auth: { username: 'mqrauuaa', password: 'zcrpzf2t1qbx' },
    pool: WEB_SHARE_FREE_POOL_COMMON,
    enabled: false,
  },
  {
    id: 'free_pool_7',
    label: 'WebShare-免费代理',
    type: 'residential',
    protocol: 'http',
    vendor: 'webshare',
    is_free: true,
    account: 'zhzr516688003@2925.com',
    api_key: '8z9cenx9l4lcp2mabqjyasrqo1s25bru6oprb9n9',
    auth: { username: 'cmvaincx', password: 'd0irmdse4dec' },
    pool: WEB_SHARE_FREE_POOL_COMMON,
    enabled: false,
  },
  {
    id: 'free_pool_8',
    label: 'WebShare-免费代理',
    type: 'residential',
    protocol: 'http',
    vendor: 'webshare',
    is_free: true,
    account: 'zhzr516688good001@2925.com',
    api_key: 'nkahggu1zo1lt4y4hlvg476ow7sjd8afflw532od',
    auth: { username: 'zrjphwcc', password: '6oqgnddn2rik' },
    pool: WEB_SHARE_FREE_POOL_COMMON,
    enabled: false,
  },
  {
    id: 'free_pool_9',
    label: 'WebShare-免费代理',
    type: 'residential',
    protocol: 'http',
    vendor: 'webshare',
    is_free: true,
    account: 'zhzr516688good002@2925.com',
    api_key: 'zp7bi4xn7mqzleifirlw1zlm27p4uzdalqoig7za',
    auth: { username: 'pcnyhcke', password: 'v6emmjj9ru52' },
    pool: WEB_SHARE_FREE_POOL_COMMON,
    enabled: false,
  },
  {
    id: 'free_pool_10',
    label: 'WebShare-免费代理',
    type: 'residential',
    protocol: 'http',
    vendor: 'webshare',
    is_free: true,
    account: 'zhzr516688good003@2925.com',
    api_key: 'ifvi41e7nd8pivvyb9m0qpzl2vp3d0m0zprd4qc7',
    auth: { username: 'avlveudx', password: '87ydfbcaxc7r' },
    pool: WEB_SHARE_FREE_POOL_COMMON,
    enabled: false,
  },
  // {
  //   id: 'rotating_residential_pool_rrinjilz',
  //   label: 'WebShare动态住宅池，帐号 rrinjilz',
  //   type: 'dynamic_pool',
  //   protocol: 'http',
  //   account: 'kxkwvqc@outlook.com',
  //   api_key: 'xheg7ox53hvsm6wwn48y183m8mv8czhx5ar0puqs',
  //   auth: { username: 'rrinjilz', password: '1otobjz8dhqz' },
  //   // WebShare 下载令牌与计划ID（用于从控制台拉取动态住宅池）
  //   download_token: 'fnhwpqcadtzpeozgysjeeiagvetfzpapwwhhqcmn',
  //   plan_id: '11928370',
  //   pool: [],
  //   enabled: false,
  // },
  // 新增webshare付费代理
  {
    id: 'webshare_paid_proxy_01',
    label: 'WebShare-付费代理',
    type: 'datacenter',
    protocol: 'http',
    vendor: 'webshare',
    is_free: false,
    account: 'zhzr5166881026@2925.com',
    api_key: '1ho51dki17hbqpy6bw25oh2uwlbc27u27b7w987r',
    auth: { username: 'eiclezeh', password: 'murecfzcvduz' },
    pool: [],
    enabled: false,
  },
  // {
  //   id: 'mars_hk_rotating_01',
  //   label: 'Mars-旋转住宅-HK',
  //   vendor: 'custom',
  //   type: 'dynamic_pool',
  //   protocol: 'http',
  //   session_type: 'rotating',
  //   auth: { username: '5yuUqgbNkl-zone-mars-region-HK', password: '85557583' },
  //   pool: ['as.698fa83a176f3cf6.ipmars.vip:4900:5yuUqgbNkl-zone-mars-region-HK:85557583'],
  //   enabled: false,
  // },
  {
    id: 'mars_hk_rotating_02',
    label: 'Mars-旋转住宅-HK',
    vendor: 'custom',
    account: 'zhzr516688001@2925.com',
    type: 'dynamic_pool',
    protocol: 'http',
    auth: { username: 'LGNiNNBO36-zone-mars-region-HK', password: '76005681' },
    pool: ['a79381b357def26a.ipmars.vip:4900', 'na.a79381b357def26a.ipmars.vip:4900', 'as.a79381b357def26a.ipmars.vip:4900', 'eu.a79381b357def26a.ipmars.vip:4900'],
    enabled: true,
  },
]
